﻿namespace KongMing.WebTools.Common
{
    public struct CShapType
    {
        public const string String = "string";
        public const string DateTime = "DateTime";
        public const string Int = "int";
        public const string Decimal = "decimal";

        //public const string StringN = "string?";
        //public const string DateTimeN = "DateTime?";
        //public const string IntN = "int?";
        //public const string DecimalN = "decimal?";

        public static List<string> GetCSharpTypes()
        {
            var list = new List<string>();
            foreach (var field in typeof(CShapType).GetFields())
            {
                list.Add(field.GetRawConstantValue()?.ToString() ?? "");
            }
            return list;
        }
    }
}
